package com.hoshiicloud.user.entity.organization;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 租户机构部门人员
 * </p>
 *
 * @author campchen
 * @since 2019-05-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("com_organization_departmentes_users")
public class ComOrganizationDepartmentesUsers implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField("id")
    private Long id;

    /**
    * 租户ID
    */
    @TableField("company_id")
    private Long companyId;


    /**
    * 部门ID
    */
    @TableField("department_id")
    private Long departmentId;


    /**
    * 用户ID
    */
    @TableField("user_id")
    private Long userId;


    /**
    * 角色 2-超级管理员 1-普通管理员 0-普通员工
    */
    @TableField("role")
    private String role;


    /**
    * 是否可用
    */
    @TableField("enabled")
    private Integer enabled;


    /**
    * 创建时间
    */
    @TableField("created_time")
    private LocalDateTime createdTime;


    /**
    * 创建人
    */
    @TableField("created_by")
    private String createdBy;


    /**
    * 修改时间
    */
    @TableField("modified_time")
    private LocalDateTime modifiedTime;


    /**
    * 修改人
    */
    @TableField("modified_by")
    private String modifiedBy;



}
